-- GENERATED SPELL FOR [Kor'kron Squad Leader] --


function spell0_31833(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31833', 629, 1)
end

function spell1_31833(pUnit, Event) --@Frost Shot,n/a--
pUnit:FullCastSpellOnTarget(12551,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31833', 10286, 1)
end

function spell2_31833(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31833', 619, 1)
end

function Sorts_31833(pUnit, Event)
local choix_sorts_31833 = math.random(0, 2)
if choix_sorts_31833 == 0 then
pUnit:RegisterEvent('spell0_31833', 1, 1)
end
if choix_sorts_31833 == 1 then
pUnit:RegisterEvent('spell1_31833', 1, 1)
end
if choix_sorts_31833 == 2 then
pUnit:RegisterEvent('spell2_31833', 1, 1)
end
end

function mob31833_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31833', math.random(1500, 3000), 1)
end

function mob31833_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31833_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31833_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31833, 1, 'mob31833_Action')
RegisterUnitEvent(31833, 2, 'mob31833_Leave')
RegisterUnitEvent(31833, 3, 'mob31833_Kill')
RegisterUnitEvent(31833, 4, 'mob31833_Die')
